#include<iostream>
using namespace std;


template<typename T1, typename T2>
void Swap(T1& a, T2& b)
{
    T1 temp = a;
    a = (T1)b;
    b = T2(temp);


}

int main()
{   
    int a = 3;
    double b = 7.7;
    Swap<int>(a,b);
    cout << "a = " << a << endl;
    cout << "b = " << b << endl;
    
    return 0;
}



